package com.neusoft.neu24.nep.nepadmin.controller;

import com.neusoft.neu24.nep.nepadmin.service.IAdminsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统管理员表 前端控制器
 * </p>
 *
 * @author 段静迪，duanjingdi@163.com
 * @since 2024-06-19
 */
@RestController
@RequestMapping("/admins")
@CrossOrigin("*")
public class AdminsController {
    @Autowired
    IAdminsService  adminsService;
    @RequestMapping("/q/byid/{adminId}")
    public String getAdminByName(@PathVariable("adminId") Integer adminId)
    {
        return adminsService.getAdminByName(adminId).toString();
    }

}
